/**
 * @file asserts.hh
 * @author Bono.ASUN.TamGitsun (gitsun.tam@outlook.com)
 * @brief 
 * @version 0.1
 * @date 2022-02-06
 * 
 * @copyright Copyright (c) 2022
 * 
 */


#pragma once


namespace TGS::utils {
    

#define ASSERT_RETURN(exp, retVal) do { \
    if (!(exp)) \
    { \
        return retVal; \
    } \
} while (0)

#define ASSERT_RETURN_VOID(exp) do { \
    if (!(exp)) \
    { \
        return; \
    } \
} while (0)

#define ASSERT_BREAK(exp) \
    if (!(exp)) \
    { \
        break; \
    }


}

